<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="备份前准备">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="opengauss-0006.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="">
  <meta name="DC.Publisher" content="20250306">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="opengauss-0009">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>备份前准备</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="opengauss-0009"></a><a name="opengauss-0009"></a>
  <h1 class="topictitle1">备份前准备</h1>
  <div>
   <p>备份前，请参考本章节提前准备相关信息。</p>
   <p><a href="#opengauss-0009__zh-cn_topic_0000001507963717_table10744125193920">表1</a>为必须获取的信息。</p>
   <p><a href="#opengauss-0009__table1944319019220">表2</a>为备份磐维CMDB集群时，才需要的信息。</p>
   <div class="tablenoborder">
    <a name="opengauss-0009__zh-cn_topic_0000001507963717_table10744125193920"></a><a name="zh-cn_topic_0000001507963717_table10744125193920"></a>
    <table cellpadding="4" cellspacing="0" summary="" id="opengauss-0009__zh-cn_topic_0000001507963717_table10744125193920" frame="border" border="1" rules="all">
     <caption>
      <b>表1 </b>备份前准备
     </caption>
     <colgroup>
      <col style="width:25.44%">
      <col style="width:7.5200000000000005%">
      <col style="width:26.02%">
      <col style="width:41.02%">
     </colgroup>
     <thead align="left">
      <tr>
       <th align="left" class="cellrowborder" valign="top" width="25.44%" id="mcps1.3.4.2.5.1.1"><p>准备项</p></th>
       <th align="left" class="cellrowborder" valign="top" width="7.5200000000000005%" id="mcps1.3.4.2.5.1.2"><p>是否必须</p></th>
       <th align="left" class="cellrowborder" valign="top" width="26.02%" id="mcps1.3.4.2.5.1.3"><p>获取方式</p></th>
       <th align="left" class="cellrowborder" valign="top" width="41.02%" id="mcps1.3.4.2.5.1.4"><p>数据使用章节</p></th>
      </tr>
     </thead>
     <tbody>
      <tr>
       <td class="cellrowborder" valign="top" width="25.44%" headers="mcps1.3.4.2.5.1.1 "><p>安装openGauss/磐维CMDB数据库的操作系统用户名</p></td>
       <td class="cellrowborder" valign="top" width="7.5200000000000005%" headers="mcps1.3.4.2.5.1.2 "><p>是</p></td>
       <td class="cellrowborder" valign="top" width="26.02%" headers="mcps1.3.4.2.5.1.3 "><p>请联系数据库管理员获取。</p></td>
       <td class="cellrowborder" rowspan="2" valign="top" width="41.02%" headers="mcps1.3.4.2.5.1.4 "><p><a href="opengauss-0011.html">步骤2：注册openGauss/磐维CMDB集群</a></p> <p></p></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.4.2.5.1.1 "><p>环境变量文件路径</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.4.2.5.1.2 "><p>否</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.4.2.5.1.3 "><p>请联系数据库管理员获取。</p></td>
      </tr>
     </tbody>
    </table>
   </div>
   <div class="tablenoborder">
    <a name="opengauss-0009__table1944319019220"></a><a name="table1944319019220"></a>
    <table cellpadding="4" cellspacing="0" summary="" id="opengauss-0009__table1944319019220" frame="border" border="1" rules="all">
     <caption>
      <b>表2 </b>备份磐维CMDB集群所需的补充信息
     </caption>
     <colgroup>
      <col style="width:15.370000000000001%">
      <col style="width:7.01%">
      <col style="width:52.62%">
      <col style="width:25%">
     </colgroup>
     <thead align="left">
      <tr>
       <th align="left" class="cellrowborder" valign="top" width="15.370000000000001%" id="mcps1.3.5.2.5.1.1"><p>准备项</p></th>
       <th align="left" class="cellrowborder" valign="top" width="7.01%" id="mcps1.3.5.2.5.1.2"><p>是否必须</p></th>
       <th align="left" class="cellrowborder" valign="top" width="52.62%" id="mcps1.3.5.2.5.1.3"><p>获取方式</p></th>
       <th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.2.5.1.4"><p>数据使用章节</p></th>
      </tr>
     </thead>
     <tbody>
      <tr>
       <td class="cellrowborder" valign="top" width="15.370000000000001%" headers="mcps1.3.5.2.5.1.1 "><p>DCS地址</p></td>
       <td class="cellrowborder" valign="top" width="7.01%" headers="mcps1.3.5.2.5.1.2 "><p>是</p></td>
       <td class="cellrowborder" rowspan="2" valign="top" width="52.62%" headers="mcps1.3.5.2.5.1.3 "><p>在磐维CMDB数据库配置文件panwei.yml（文件路径联系数据库管理员获取）中任意选一组DCS节点的IP地址和端口分别对应<span class="parmname">“DCS地址”</span>和<span class="parmname">“DCS端口”</span>。</p> <p>panwei.yml文件中的一组DCS节点IP地址和端口示例如下图：</p> <p><span><img src="zh-cn_image_0000002164638772.png"></span></p></td>
       <td class="cellrowborder" rowspan="3" valign="top" width="25%" headers="mcps1.3.5.2.5.1.4 "><p><a href="opengauss-0011.html">步骤2：注册openGauss/磐维CMDB集群</a></p></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.1 "><p>DCS端口</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.2 "><p>是</p></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.1 "><p>数据库账户及密码</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.2 "><p>是</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.3 "><p>需要获取具有备份/还原操作权限的数据库账户及密码，请联系数据库管理员获取。</p> <p>创建账户请参考以下方法：</p>
        <ol>
         <li>使用PuTTY，登录集群任意一台数据库主机。</li>
         <li>执行以下命令，登录postgres数据库。<pre class="screen">gsql -d postgres -p <em>5432</em></pre></li>
         <li>执行以下命令，创建账户并设置密码。<pre class="screen">CREATE USER <em>账户名</em> with PASSWORD '<em>账户密码</em>';</pre></li>
         <li>执行以下命令，赋予账户权限。<pre class="screen">GRANT ALL PRIVILEGES to <em>账户名</em>;</pre></li>
        </ol></td>
      </tr>
     </tbody>
    </table>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="opengauss-0006.html">备份</a>
    </div>
   </div>
  </div>
 </body>
</html>